#ifndef __SMS_ICONTEXTVIEW__
#define __SMS_ICONTEXTVIEW__

#include <goocanvas.h>

#include "theme.h"

typedef struct _ICONTEXTVIEW
{
	GooCanvasItem *parent;
	GooCanvasItem *cavas;
	//GooCanvasItem *frame;
	//GooCanvasItem *group;
	GooCanvasItem *background;
	//GooCanvasItem *foreground;	
	
	GooCanvasItem *text;
	GooCanvasItem *icon;
	
	GdkPixbuf *pixbuf_bg;
	GdkPixbuf *pixbuf_fg;
	gchar *textbuf;
	
	gdouble x;
	gdouble y;
	gdouble w;
	gdouble h;
	
	gchar *summary_file;

	Theme * theme;
	gpointer next;
	gpointer privent;
}IconTextView;

IconTextView *icontext_view_new(GooCanvasItem *parent, gdouble x, gdouble y,
		                                               GdkPixbuf *pixbuf_bg, GdkPixbuf *pixbuf_fg, GdkPixbuf *pixbuf_icon,
		                                               gdouble icon_x, gdouble icon_y,
		                                               gdouble text_x, gdouble text_y, gdouble text_w, gchar *text,
		                                               Theme *theme);
IconTextView *icontext_view_new_by_theme(GooCanvasItem *parent, gdouble x, gdouble y,
		                                                        gdouble icon_x, gdouble icon_y,
		                                                        gdouble text_x, gdouble text_y, gdouble text_w, gchar *text,
		                                                        Theme *theme);

void icontext_view_destroy(IconTextView *itv);

//gboolean icontext_view_set_view_frame_pic(IconTextView *itv, GdkPixbuf *pixbuf);
gboolean icontext_view_set_view_background_pic(IconTextView *itv, GdkPixbuf *pixbuf);
gboolean icontext_view_set_view_highlight_pic(IconTextView *itv, GdkPixbuf *pixbuf);
gboolean icontext_view_set_icon_pic(IconTextView *itv, GdkPixbuf *pixbuf);

gboolean icontext_view_set_icon_position(IconTextView *itv, gdouble x, gdouble y);
gboolean icontext_view_set_text(IconTextView *itv, gdouble x, gdouble y, gchar *text);

//Theme *listview_change_theme(Theme *theme, ...);

//gboolean icontext_view_set_focus(IconTextView *itv)
gboolean icontext_view_is_focus(IconTextView *itv);
gchar *icontext_view_get_summary(IconTextView *itv);

gboolean icontext_view_show(IconTextView *itv);
#endif
